#include<iostream>
#include <stdlib.h>

using namespace std;

int main()

{
    int n1;
    int n2;
    int i;
    cout<<"Ingrese el numero donde empieza a contar:"<<" "<<endl;
    cin>>n1;
    cout<<"Ingrese el tope:"<<" "<<endl;
    cin>>n2;

   if (n1<n2)
   {
    i=n1-1;
    while (i<n2)
    {
        cout<<i+1<<endl;
        i++;
    }
  }
  else
  {
      i=n2-1;
      while (i<n1)
      {
          cout<<i+1<<endl;
          i++;
      }
  }
    return 1;
}
